package com.opesoft.fw.edm.impl;

import java.lang.reflect.Method;

import com.opesoft.fw.edm.Respond;

public class ProLogic extends StandardLogic
{

	public Object execute() throws Exception
	{
		String op=this.data.get("op")+"";
		if(op==null) op="";

		Method method=this.getClass().getMethod(op,new Class[]{});
		Object result=method.invoke(this,new Object[]{});
		if(result instanceof String)
		{
			return new Respond(true,result+"");
		}
		return result;
	}

}
